/*
  S.M.A.C.K - An operating system kernel
  Copyright (C) 2010,2011 Mattias Holm and Kristian Rietveld
  For licensing and a full list of authors of the kernel, see the files
  COPYING and AUTHORS.
*/

#include <stdio.h>
#include <syscalls.h>

int main(int argc, char **argv)
{
  int pid;

  printf("hello parent\n");

  pid = fork();

  if (pid == 0)
    {
      while (1)
        {
          printf("child: hello! sleeping for 2 seconds.\n");
          sleep(2);
        }
    }
  else
    {
      printf("Parent, child = %d\n", pid);
      while (1)
        {
          printf("parent: hello world from user-land!\n");
          sleep(4);
        }
    }
}
